import Http from '~/utils/http'
export default new (class user extends Http {
  //   登陆
  public login(body: any) {
    return this.post('/user/client_login_by_official_website', body)
  }

  //   获取新闻
  public askQuestions(body: any) {
    return this.post(
      `/ailab/predict/${localStorage.getItem('current_robot_id')}`,
      body,
      {},
      true,
    )
  }
})()
